betray (someone's) identity

Translations
выдать (чью-то) личность
The spy was careful not to betray his identity.
Шпион был осторожен, чтобы не выдать свою личность.
Definitions
To reveal or disclose information that makes someone's true identity known, often unintentionally or against their wishes.